package com.srit.migration.business.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

import com.srit.base.bean.Page;
import com.srit.migration.business.bean.DbType;
import com.srit.migration.business.dao.DbTypeDao;
import com.srit.migration.business.service.DbTypeService;

/**
 * @author guan
 * @by serviceImpl.tem
 * 
 */
 @Service
public class DbTypeServiceImpl implements DbTypeService {
	@Autowired(required = true)
	private DbTypeDao dbTypeDao;

	@Override
	public void save(DbType dbType) {
		dbTypeDao.save(dbType);
	}

	@Override
	public void update(DbType dbType) {
		dbTypeDao.update(dbType);
	}

	@Override
	public DbType getById(DbType dbType) {
		return (DbType) dbTypeDao.getById(dbType);
	}

	@Override
	public void delete(DbType dbType) {
		dbTypeDao.delete( dbType);
	}

	@Override
	public void page(Page page) {
		dbTypeDao.page( page);
	}
	
	@Override
	public void batchSave(List<DbType> dbTypeList) {
		dbTypeDao.batchSave(dbTypeList);

	}

	@Override
	public List list(Page page) {
		return dbTypeDao.list( page);
	}

}
